package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 长顺
 * @since 2020-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Pile对象", description="")
public class Pile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "pile_id", type = IdType.ID_WORKER_STR)
    private String pileId;

    @ApiModelProperty(value = "供应商id")
    private String supplierId;

    @ApiModelProperty(value = "充电站id")
    private String SiteId;

    @ApiModelProperty(value = "电桩类型（0：国际、1：特斯拉，默认0）")
    private Integer pileType;

    @ApiModelProperty(value = "电桩型号（0：快充、1：慢充，默认0）")
    private Integer pileModel;

    @ApiModelProperty(value = "状态（0：空闲、1：使用中、2：维修中、删除-1、,默认0）")
    private Integer pileState;

    @ApiModelProperty(value = "版本号，用于乐观锁")
    @Version
    private Integer pileVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date pileCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date pileModifyTime;


}
